[LINUX][NET] Add default ethtool get_link implementation to all
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 25 Jul 2006 15:11:12 +0000 (16:11 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 25 Jul 2006 15:11:12 +0000 (16:11 +0100)
interfaces. Some management tools rely on this operation.

From: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/netback/interface.c
linux-2.6-xen-sparse/drivers/xen/netback/loopback.c
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c

index 3d5db4452fe8f1ce042a505322181e622e262284..f52e2601b7d0c73d750e629f823b6bac0e27df11 100644 (file)
@@ -76,6 +76,7 @@ static struct ethtool_ops network_ethtool_ops =
 {
        .get_tx_csum = ethtool_op_get_tx_csum,
        .set_tx_csum = ethtool_op_set_tx_csum,
+       .get_link = ethtool_op_get_link,
 };
 
 netif_t *netif_alloc(domid_t domid, unsigned int handle, u8 be_mac[ETH_ALEN])
index 64c6c352d406b5b852ebf23e0eba389a368189ef..e4e438b438a2a99ecd7cd38fa7970365470d1fe8 100644 (file)
@@ -129,6 +129,7 @@ static struct ethtool_ops network_ethtool_ops =
        .set_sg = ethtool_op_set_sg,
        .get_tso = ethtool_op_get_tso,
        .set_tso = ethtool_op_set_tso,
+       .get_link = ethtool_op_get_link,
 };
 
 /*
index 1f2096049a6d687d0858cd65b84d76f5251367a0..92057e101c5709d01afd56ba7ed118470c191917 100644 (file)
@@ -1201,6 +1201,7 @@ static struct ethtool_ops network_ethtool_ops =
        .set_sg = xennet_set_sg,
        .get_tso = ethtool_op_get_tso,
        .set_tso = xennet_set_tso,
+       .get_link = ethtool_op_get_link,
 };
 
 #ifdef CONFIG_SYSFS